<template>
    <div class="home">
        <h2>主页</h2>
        <nav>
          <div class="user">
            <span id="username"></span>
            <span>欢迎进入这个官网</span>
          </div>
        </nav>

        <router-link to="/userlogin">用户请登录 </router-link>
        ·
        <router-link to="/userregister">注册</router-link>
        <br /><br />
        <router-link to="/doctorlogin">医生请登录</router-link>
        <br /><br />
        <router-link to="/adminlogin">管理员请登录</router-link>
        <router-view></router-view>
<button @click="getdata">点击</button>
<hr>
{{user.username}}
    </div>
</template>
<script>
  import useCounterStore from "../../store/index";
  export default {
  data() {
    return {
      user:useCounterStore()
    };
  },
  methods: {
 
  },
};
</script>
<style scoped>
  .home {
    width: 300px;
    height: 300px;
    /* background-color: beige; */
    /* margin: 0 auto; */
  }
  .home h2 {
    color: rgb(83, 40, 214);
    font-size: 40px;
  }
  a {
    text-decoration: none;
    font-size: 20px;
  }
</style>